@import '~styles/colors.less';

.root {
}

.link {
  display: block;
  text-decoration: none;
}

.user {
  width: 125px;
  height: 125px;
  display: inline-block;
  vertical-align: top;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 10px;
}

.info {
  padding: 15px;
  height: 65px;
  text-align: center;
}

.title {
  color: @adminTextHighlight;
  font-size: 16px;
  line-height: 19px;
}

.value {
  color: @adminText;
  font-size: 14px;
  font-weight: 300;
}

.actions {
  visibility: hidden;
  border-top: 1px solid @adminBorders;
}

.button {
  height: 39px;
  line-height: 39px;
  font-size: 12px;
  text-transform: uppercase;
  color: @adminText;
}

.remove {
  color: @alert;
}

.list {
  position: relative;
  border-bottom: 1px solid @adminBorders;

  .link {
    padding: 15px 20px;
  }

  .user {
    width: 70px;
    height: 70px;
    margin-top: 0px;

    :global img {
      width: 70px;
    }
  }
  .info {
    display: inline-block;
    vertical-align: top;
    text-align: left;
  }
  .actions {
    visibility: visible;
    display: inline-block;
    vertical-align: top;
    position: absolute;
    right: 15px;
    top: 10px;
    border-top: 0;
    padding: 20px 15px;
  }
}

.grid {
  width: 21.25%;
  margin-right: 5%;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 60px;
  text-align: center;
  border: 1px solid transparent;


  &:hover {
    border: 1px solid @adminBorders;
    .actions {
      visibility: visible;
    }
  }

  @media screen and (min-width: 1501px) {
    &.root {
      width: 16%;
      &:nth-child(5n+5) {
        margin-right: 0;
      }
    }
  }

  @media screen and (max-width: 1500px) and (min-width: 1101px) {
    &.root {
      &:nth-child(4n+4) {
        margin-right: 0;
      }
    }
  }

  @media screen and (max-width: 1100px) and (min-width: 851px) {
    &.root {
      width: 30%;
      &:nth-child(3n+3) {
        margin-right: 0;
      }
    }
  }

  @media screen and (max-width: 850px) and (min-width: 751px) {
    &.root {
      width: 45%;
      margin-right: 10%;
      &:nth-child(2n+2) {
        margin-right: 0;
      }
    }
  }

  @media screen and (max-width: 750px) {
    &.root {
      width: 100%;
      margin-right: 0%;
    }
  }
}
